This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
As far as I remember reading, in 8.5 getUrl would return a string but this was actually incorrect and it should have returned an object of a class. They have since fixed this in 8.5.1+.
If you wrap your str variable in @Text or use toString (if you don;t want to use @Formula) that should fix it for you.
var str = @Text(context.getUrl());
var xpg = "xpages1.xsp";
if (str.indexOf(xpg) > 1) {"xpages2.xsp"}
else {"xpages3.xsp"}
Feedback response number WEBB8BPFT9 created by ~August Retumizenettu on 11/30/2010